﻿<Window x:Class="MVVM.WPFView.CustomerView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:vm="clr-namespace:MVVM.ViewModel;assembly=MVVM.ViewModel"
    Title="MVVM AdventureWorks Application." 
    Height="500" Width="500"
    WindowStartupLocation="CenterScreen" WindowState="Normal"
    WindowStyle="ToolWindow">
    <!--<Window.DataContext>
        <vm:CustomerViewModel />
    </Window.DataContext>-->
    <!-- BACKGROUND -->
    <Window.Background>
        <ImageBrush ImageSource="Images/account_simple.jpg" Opacity="1" />
    </Window.Background>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition />
            <RowDefinition />
            <RowDefinition Height="40" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition />
            <ColumnDefinition />
            <ColumnDefinition />
            <ColumnDefinition />
        </Grid.ColumnDefinitions>
        <GroupBox Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="4" Margin="5">
            <GroupBox.Header>
                <TextBlock FontWeight="Bold" Foreground="White">Principal Information.</TextBlock>
            </GroupBox.Header>
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"/>
                    <ColumnDefinition Width="10" />
                    <ColumnDefinition Width="*" />
                </Grid.ColumnDefinitions>
                <Grid.RowDefinitions>
                    <RowDefinition />
                    <RowDefinition />
                    <RowDefinition />
                    <RowDefinition />
                    <RowDefinition />
                </Grid.RowDefinitions>
                <Label Grid.Column="0" Grid.Row="0" Foreground="White">_Initials :</Label>
                <TextBox Margin="2" Grid.Column="2" Grid.Row="0" Text="{Binding Path=CurrentCustomer.Title}"></TextBox>
                <Label Grid.Column="0" Grid.Row="1" Foreground="White">_First Name :</Label>
                <TextBox Margin="2" Grid.Column="2" Grid.Row="1" Text="{Binding Path=CurrentCustomer.FirstName}"></TextBox>
                <Label Grid.Column="0" Grid.Row="2" Foreground="White">_Middle Name :</Label>
                <TextBox Margin="2" Grid.Column="2" Grid.Row="2"></TextBox>
                <Label Grid.Column="0" Grid.Row="3" Foreground="White">_Last Name :</Label>
                <TextBox Margin="2" Grid.Column="2" Grid.Row="3"></TextBox>
                <Label Grid.Column="0" Grid.Row="4" Foreground="White">_Company Name :</Label>
                <ComboBox Margin="2" Grid.Column="2" Grid.Row="4"></ComboBox>
            </Grid>
        </GroupBox>
        <GroupBox Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="4" Grid.RowSpan="2" Margin="5">
            <GroupBox.Header>
                <TextBlock FontWeight="Bold" Foreground="White">Address Information.</TextBlock>
            </GroupBox.Header>
            <TabControl>
                <TabItem>
                    <TabItem.Header>Address Nr.01</TabItem.Header>
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="Auto"/>
                            <ColumnDefinition Width="10" />
                            <ColumnDefinition Width="*" />
                        </Grid.ColumnDefinitions>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                        </Grid.RowDefinitions>
                        <Label Grid.Column="0" Grid.Row="0">_Line 1 :</Label>
                        <TextBox Grid.Column="2" Grid.Row="0" Margin="2"></TextBox>
                        <Label Grid.Column="0" Grid.Row="1">_Line 2 :</Label>
                        <TextBox Grid.Column="2" Grid.Row="1" Margin="2"></TextBox>
                        <Label Grid.Column="0" Grid.Row="2">_City :</Label>
                        <TextBox Grid.Column="2" Grid.Row="2" Margin="2"></TextBox>
                        <Label Grid.Column="0" Grid.Row="3">_State :</Label>
                        <TextBox Grid.Column="2" Grid.Row="3" Margin="2"></TextBox>
                        <Label Grid.Column="0" Grid.Row="4">_Country :</Label>
                        <TextBox Grid.Column="2" Grid.Row="4" Margin="2"></TextBox>
                        <Label Grid.Column="0" Grid.Row="5">_P.O.Box. :</Label>
                        <TextBox Grid.Column="2" Grid.Row="5" Margin="2"></TextBox>
                    </Grid>
                </TabItem>
            </TabControl>
        </GroupBox>
    </Grid>
</Window>
